package io.arukas;

import io.arukas.service.HelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by IntelliJ IDEA. <br/>
 *
 * @Auther: 牛玉贤 <br/>
 * @Date: 2019/9/17 15:09 <br/>
 * @Email: ncc0706@gmail.com <br/>
 */
public class XmlSampleApp {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");

		HelloService hello = (HelloService) context.getBean("hello");
		hello.sayHello();
	}

}
